package cn.tedu.submarine;

import javax.swing.*;

public class Torpedo extends SeaObject {


    Torpedo(int x,int y){
        super(18,5,x,y,1);
    }
    /** 重写move移动    */
    public void move(){
        y-=speed;//y-(向右)
    }
    public ImageIcon getImage(){
        return Images.torpedo;
    }
    public boolean isOutOfBound(){
        return this.y<=-this.height;
    }


}
